﻿using System.Web;
using Microsoft.Web.Infrastructure.DynamicModuleHelper;
using RouteDebug;
using TSharp.Core.Env;

[assembly: PreApplicationStartMethod(typeof (PreApplicationStart), "Start")]

namespace RouteDebug
{
    public class PreApplicationStart
    {
        public static void Start()
        {
            if (TSharpGlobal.IsRouteDebuggerEnable)
            {
                DynamicModuleUtility.RegisterModule(typeof (RouteDebuggerHttpModule));
            }
        }
    }
}